package com.zr.dao.dispatch;

import com.zr.vo.dispatch.DispatchTicketOrder;
import com.zr.vo.order.OrderForm;

import java.util.List;

public interface DispatchTicketOrderDao {
    int deleteByPrimaryKey(Integer id);

    int insert(DispatchTicketOrder record);

    int insertSelective(DispatchTicketOrder record);

    DispatchTicketOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DispatchTicketOrder record);

    int updateByPrimaryKey(DispatchTicketOrder record);
    /**
     * 通过调度单号和订单号删除中间表
     * @param dispatchTicketOrder
     * @return
     * @author 陈鹏
     */
    int deleteByOrderAndDispatchId(DispatchTicketOrder dispatchTicketOrder);

    /**
     * 通过调度单号删除中间表
     * @param id
     * @return
     * @author 陈鹏
     */
    int deleteByTicketId(Integer id);
}